import { createStore,combineReducers, applyMiddleware  } from "redux";
import { composeWithDevTools } from 'redux-devtools-extension';
import userReducer from "./user/user";
import orderReducer from "./order/order";
// combineReducers合并两个子模块的reducer
let rootReducer = combineReducers({
  user: userReducer,
  order: orderReducer
})
// composeWithDevTools 创建组件时，将数据放入devtools中
let store = createStore(rootReducer, composeWithDevTools(applyMiddleware()));
export default store
